<template>
  <div class="class-name">/category/detail - {{ id }}</div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();
const id = route.params.id; // 获取 params 中的 userId

console.log(ref);
</script>
